<template>
  <el-pagination
    background
    layout="prev, pager, next"
    :total="total"
    :page-size="pageSize"
    :current-page="currentPage"
    @current-change="getPage">
  </el-pagination>
</template>
<script>
export default {
  data(){
    return {
      currentPage2: this.currentPage
    }
  },
  props: {
    total: Number,
    pageSize: Number,
    currentPage: Number
  },
  methods: {
    getPage(page) {
      this.$emit('changePage', page);
    }
  }
}
</script>


